package com.bincky.logicmodel;

import com.bincky.pageobject.MySubmittedWorkReportPage;

/**
 * 描述:
 *
 * @author Bincky Liang
 * @date 2021-02-19 20:46:46
 */

public class MySubmittedWorkReportLogicModel {

    /**
     * 判断待审批tab是否被选中的逻辑层实现
     */
    public boolean checkPendingToApprovalSelected(){
        MySubmittedWorkReportPage mySubmittedWorkReportPage = new MySubmittedWorkReportPage();
        return mySubmittedWorkReportPage.isSelectedPendingToApprovalTab();
    }

    /**
     * 判断审批不通过tab是否被选中的逻辑层实现
     */
    public boolean checkNotApprovalSelected(){
        MySubmittedWorkReportPage mySubmittedWorkReportPage = new MySubmittedWorkReportPage();
        return mySubmittedWorkReportPage.isSelectedNotApproval();
    }

    /**
     * 提交汇报的逻辑层实现
     */
    public void submitReport(){
        MySubmittedWorkReportPage mySubmittedWorkReportPage = new MySubmittedWorkReportPage();
        mySubmittedWorkReportPage.clickSubmitReportButton();
        mySubmittedWorkReportPage.clickDivConfirmButton();
    }

}
